﻿using System;
using System.Collections.Generic;
using System.Web;

/// <summary>
/// Summary description for CarUserAccount
/// </summary>
namespace CE.CarInsurance
{
    public class CarUserAccount
    {
        public CarUserAccount()
        {
            ClearFileds();
        }

        private Int64 _ceid;
        private string _userid;
        private string _email;
        private string _authcode;
        private string _authsalt;
        private string _authhint;
        private int _usertype;
        private bool _isaccepttc;

        //common field name
        private bool _status;
        private DateTime _createddate;
        private DateTime _modifieddate;
        private Int64 _refceuserid;

        //extra field for future extend
        private string _info1;
        private string _info2;
        private string _info3;
        private string _info4;
        private string _info5;
        private string _info6;
        private string _info7;
        private string _info8;
        private string _info9;
        private string _info10;

        public Int64 CEID
        {
            get { return _ceid; }
            set { _ceid = value; }
        }

        public string UserId
        {
            get { return _userid; }
            set { _userid = value; }
        }

        public string Email
        {
            get { return _email; }
            set { _email = value; }
        }

        public string AuthCode
        {
            get { return _authcode; }
            set { _authcode = value; }
        }

        public string AuthSalt
        {
            get { return _authsalt; }
            set { _authsalt = value; }
        }

        public string AuthHint
        {
            get { return _authhint; }
            set { _authhint = value; }
        }

        public int UserTypeId
        {
            get { return _usertype; }
            set { _usertype = value; }
        }

        public bool IsAcceptTC
        {
            get { return _isaccepttc; }
            set { _isaccepttc = value; }
        }

        public bool Status
        {
            get { return _status; }
            set { _status = value; }
        }

        public Int64 RefCEUserID
        {
            get { return _refceuserid; }
            set { _refceuserid = value; }
        }

        public DateTime CreatedDate
        {
            get { return _createddate; }
            set { _createddate = value; }
        }

        public DateTime ModifiedDate
        {
            get { return _modifieddate; }
            set { _modifieddate = value; }
        }

        public string Info1
        {
            get { return _info1; }
            set { _info1 = value; }
        }

        public string Info2
        {
            get { return _info2; }
            set { _info2 = value; }
        }

        public string Info3
        {
            get { return _info3; }
            set { _info3 = value; }
        }

        public string Info4
        {
            get { return _info4; }
            set { _info4 = value; }
        }

        public string Info5
        {
            get { return _info5; }
            set { _info5 = value; }
        }

        public string Info6
        {
            get { return _info6; }
            set { _info6 = value; }
        }

        public string Info7
        {
            get { return _info7; }
            set { _info7 = value; }
        }

        public string Info8
        {
            get { return _info8; }
            set { _info8 = value; }
        }

        public string Info9
        {
            get { return _info9; }
            set { _info9 = value; }
        }

        public string Info10
        {
            get { return _info10; }
            set { _info10 = value; }
        }

        public void ClearFileds()
        {
            _ceid = 0;
            _userid = "";
            _email = "";
            _authcode = "";
            _authhint = "";
            _authsalt = "";
            _usertype = 0;
            _isaccepttc = false;
            //common field name
            _status = false;
            _createddate = new DateTime(1900, 1, 1);
            _modifieddate = new DateTime(1900, 1, 1);

            //extra field for future extend
            _info1 = "";
            _info2 = "";
            _info3 = "";
            _info4 = "";
            _info5 = "";
            _info6 = "";
            _info7 = "";
            _info8 = "";
            _info9 = "";
            _info10 = "";
        }

    }
}